# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=rhythmbox
pkgver=3.4.4
pkgrel=0
pkgdesc="GNOME audio player"
url="https://wiki.gnome.org/Apps/Rhythmbox"
# s390x and riscv64 blocked by gnome-desktop -> gtk4
arch="all !riscv64 !s390x"
license="GPL-2.0-or-later"
depends="py3-gobject3"
depends_dev="gnome-desktop-dev libpeas-dev"
makedepends="$depends_dev tdb-dev libsoup-dev json-glib-dev totem-pl-parser-dev
	gmime-dev libmtp-dev gst-plugins-base-dev py3-gobject3-dev libxslt libxml2-utils
	docbook-xml docbook-xsl itstool intltool gstreamer-dev"
options="!check" # no tests
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/rhythmbox/${pkgver%.*}/rhythmbox-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="1fcd41dd66ffe34852f8cedb80ade57d101118295d6fd6f0a8687000ab6500991d2e11482daedb30a7abaf63e54e33ee3c4eaab73b075ec5e5907182f9a8c865  rhythmbox-3.4.4.tar.xz"
